home *** CD-ROM | disk | FTP | other *** search
- Path: newsroom.utas.edu.au!bruny!ntring
- From: ntring@bruny.mpx.com.au (Nick Ring)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: ARexx: Using systemwide global variables - PLEASE HELP!
- Date: 28 Mar 1996 02:23:27 GMT
- Organization: University of Tasmania, Australia.
- Distribution: inet
- Message-ID: <4jct6v$a99@franklin.its.utas.edu.au>
- References: <4jc7t7$7u2@due.unit.no>
- Reply-To: nring@mpx.com.au
- NNTP-Posting-Host: bruny.its.utas.edu.au
- X-Newsreader: TIN [version 1.2 PL2]
-
- : I want to maintain a global variable from several different
- : ARexx scripts.
-
- How about using ARexx's "clipboard" (see the 'setclip' and 'getclip'
- functions).
-
- : Only one script must be able to read and modify the variable
- : at the same time.
- : How cound I do this?
-
- You could delete the variable which sort of solves both conditions. After you
- have finished modifying it, write it back out.
-
- : I am currently using global environment variables, but that's only
- : really an emergency solution since forbid() isn't unbreakable
-
- Ouch! Using forbid() is nasty. It degrades the whole system performance.
-
- : within the scripts which modifies the variable. Also, it's a very
- : slow solution since the environment variables are stored as files
- : in AmigaDOS.
-
- It's only going to RAM, and RAM, the last time I checked, was slow unless you
- send out the result in single characters.
-
- : Any ideas?
-
- You have got my $0.02 worth. I hope it helps.
-
- nick
-